﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Sistema.Master" AutoEventWireup="true"
    CodeBehind="MisTurnos.aspx.cs" Inherits="CMS.MisTurnos" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
    <style type="text/css">
        .modalBackground
        {
            background-color: black;
            filter: alpha(opacity=70);
            opacity: 0.7;
        }
        .modalPopup
        {
            border: 4px outset Black;
            background-color: silver;
            padding: 0px;
            font-weight: bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpTituloPagina" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpNav" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cpContenido" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <header>
        <h2>Turnos</h2>
    </header>
    <script type="text/javascript">
        function confirm() {

            confirm('¿Desea cancelar el turno seleccionado?');

        }
    
    </script>
    <p style="height: 21px">
        <asp:Label ID="lblCondicion" runat="server"></asp:Label>
        <br />
    </p>
    <div style="height: 209px">
        <br />
        <br />
        <asp:GridView ID="grdTurnos" DataKeyNames="idTurno" runat="server" AutoGenerateColumns="False"
            CellPadding="4" Height="121px" Width="639px" BackColor="White" BorderColor="#CC9966"
            BorderStyle="None" BorderWidth="1px" OnSelectedIndexChanged="grdTurnos_SelectedIndexChanged">
            <Columns>
                <asp:BoundField HeaderText="Fecha" DataField="FechaTurno" DataFormatString="{0:M-dd-yyyy}" />
                <asp:BoundField HeaderText="Dia" DataField="Dia" />
                <asp:BoundField HeaderText="Medico" DataField="Medico" />
                <asp:BoundField HeaderText="Hora" DataField="HoraTurno" DataFormatString="{0:hh\:mm}" />
                <asp:BoundField HeaderText="Especialidad" DataField="Especialidad" />
                <asp:BoundField HeaderText="Estado" DataField="Estado" />
                <asp:CommandField HeaderText="Seleccionar" ShowSelectButton="True" />
                <asp:BoundField DataField="idTurno" HeaderText="idTurno" Visible="False" />
            </Columns>
            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
            <RowStyle BackColor="White" ForeColor="#330099" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
            <SortedAscendingCellStyle BackColor="#FEFCEB" />
            <SortedAscendingHeaderStyle BackColor="#AF0101" />
            <SortedDescendingCellStyle BackColor="#F6F0C0" />
            <SortedDescendingHeaderStyle BackColor="#7E0000" />
        </asp:GridView>
        <asp:Panel ID="Panel1" runat="server" Style="display: none;" CssClass="modalPopup"
            Height="114px" Width="326px" Font-Italic="False">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="lblModal" runat="server" Text="Cancelar turno"></asp:Label>
            <br />
            &nbsp;<br />
            <table class="style28">
                <tr>
                    <td class="style35">
                        <asp:Button ID="btnAceptar" runat="server" Text="Aceptar" OnClick="btnAceptar_Click1"
                            Height="35px" Width="60px" />
                    </td>
                    <td class="style33">
                        &nbsp;
                    </td>
                    <td class="style34">
                        <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" OnClick="btnCancelar_Click1"
                            Height="35px" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="modalBackground"
            PopupControlID="Panel1" OnOkScript="okScript" TargetControlID="btnAux">
        </asp:ModalPopupExtender>
        <asp:Button ID="btnAux" runat="server" Text="Cancelar" />
    </div>
</asp:Content>
